﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhanMemSapThoiKhoaBieu
{
    public class MonHoc : IComparable<MonHoc>
    {
        private string _TenMonHoc;

        public string TenMonHoc
        {
            get { return _TenMonHoc; }
            set { _TenMonHoc = value; }
        }
        private int _SoTietHocTrongTuan;

        public int SoTietHocTrongTuan
        {
            get { return _SoTietHocTrongTuan; }
            set { _SoTietHocTrongTuan = value; }
        }
        private int _SoTietTrenBuoi;

        public int SoTietTrenBuoi
        {
            get { return _SoTietTrenBuoi; }
            set { _SoTietTrenBuoi = value; }
        }

        private int _Bac;

        public int Bac
        {
            get { return _Bac; }
            set { _Bac = value; }
        }


        public int CompareTo(MonHoc b)
        {
            return b._Bac.CompareTo(this._Bac);
        }

        public void TinhBac()
        {
            this._Bac = this._SoTietHocTrongTuan / this._SoTietTrenBuoi;
        }
    }
}
